<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>修改信息</title>
  <script type="text/javascript" src="js/jquery-3.5.1.js"></script>
  <script type="application/javascript" src="./assets/js/layui-v2.5.6/layui-v2.5.6/layui/layui.js"></script>
  <link rel="stylesheet" href="./assets/js/layui-v2.5.6/layui-v2.5.6/layui/css/layui.css">
  
</head>
<body>
    <form class="layui-form" action="">
        <div class="layui-form-item">
          <label class="layui-form-label">姓名</label>
          <div class="layui-input-block">
            <input type="text" name="title" required  lay-verify="required" placeholder="请输入姓名" autocomplete="off" class="layui-input">
          </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">性别</label>
            <div class="layui-input-block">
              <input type="radio" name="sex" value="男" title="男">
              <input type="radio" name="sex" value="女" title="女" checked>
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">联系电话</label>
            <div class="layui-input-block">
              <input type="text" name="title" required  lay-verify="required" placeholder="请输入号码" autocomplete="off" class="layui-input">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">详细地址</label>
            <div class="layui-input-block">
              <input type="text" name="title" required  lay-verify="required" placeholder="请输入地址" autocomplete="off" class="layui-input">
            </div>
          </div>
        <div class="layui-form-item">
          <label class="layui-form-label">房区意愿</label>
          <div class="layui-input-block">
            <select name="city" lay-verify="required">
              <option value="">吉州区</option>
              <option value="0">青原区</option>
              <option value="1">吉安县</option>
              <option value="2">吉水县</option>
              <option value="3">安福县</option>
              <option value="4">泰和县</option>
              <option value="5">永新县</option>
              <option value="6">永丰县</option>
              <option value="7">遂川县</option>
              <option value="8">峡江县</option>
              <option value="8">暂无意愿</option>
            </select>
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">兴趣爱好</label>
          <div class="layui-input-block">
            <input type="checkbox" name="like[write]" title="写作">
            <input type="checkbox" name="like[read]" title="阅读" checked>
            <input type="checkbox" name="like[dai]" title="发呆">
            <input type="checkbox" name="like[sport]" title="运动">
            <input type="checkbox" name="like[food]" title="美食">
          </div>
        </div>
        <!-- <div class="layui-form-item">
          <label class="layui-form-label">开关</label>
          <div class="layui-input-block">
            <input type="checkbox" name="switch" lay-skin="switch">
          </div>
        </div> -->
        
        <div class="layui-form-item layui-form-text">
          <label class="layui-form-label">个性标签</label>
          <div class="layui-input-block">
            <textarea name="desc" placeholder="请输入内容" class="layui-textarea"></textarea>
          </div>
        </div>
        <div class="layui-form-item">
          <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
          </div>
        </div>
      </form>
       
      <script>
      //Demo
      layui.use('form', function(){
        var form = layui.form;
        
        //监听提交
        form.on('submit(formDemo)', function(data){
          layer.msg(JSON.stringify(data.field));
          return false;
        });
      });
      </script>
</body>